﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Demo.aspx.cs" Inherits="Demo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="css/styles.css" type="text/css" />
    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="Scripts/swfobject.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {

            $('.swf').click(function () {

                var flashvars = {};
                var params = { wmode: "transparent", AllowScriptAccess: "always" };
                var attributes = {};
                swfobject.embedSWF($(this).attr('rel'), "viewerPlaceHolder", "700", "900", "9.0.0", '<%=ResolveUrl("~/Scripts/expressInstall.swf") %>', flashvars, params, attributes);
                
            });
            $('.swf:first').click();

        });
    </script>    
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper">
        <a id="viewerPlaceHolder" class="doc"></a>
        <div class="list">
            <div class="upload">
                <div>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                </div>
                <p>
                    <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click1" />
                    <asp:Button ID="Button2" runat="server" Text="Refresh" 
                        onclick="Button2_Click" />
                </p>
            </div>
            <ul>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <li><a class="swf" rel='<%#Eval("Path").ToString()%>'><%#Eval("Filename").ToString()%></a></li>
                </ItemTemplate>
            </asp:Repeater>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>
